<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        /*sum(4, 7);

                function sum(a, b) {
                    console.log("a = " + a);
                    console.log("b = " + b);
                };*/
        (function(a, b) {
            console.log("a = " + a);
            console.log("b = " + b);
        })(123, 456);
    </script>
</body>

</html>